#ifndef __AUDIO_SHARE_HH
#define __AUDIO_SHARE_HH

#include "Sharemem.hh"

class AudioShare: public Sharemem{
public:
    AudioShare(int shareId, int64_t memSize);
    AudioShare(int shareId, int chnNum );
    ~AudioShare();

    AudioShare* createNewShare(int shareId, int64_t memSize );
    AudioShare* createReadShare(int shareId, int chnNum );

protected:
    virtual void moveReadPtr();
    virtual void getMediaInfo( const char *data, PAYLOAD_TYPE_E &mediaType, bool &keyFrame, struct timeval tvl = {0, 0} );
};

#endif
